import request from "@/utils/request"
const Bookkeeping = (id: number) => {
    return request.get(
        `/accountSetting/accountSelect?accType=${id}`
    )
}
const book1=(id:number)=>{
    return request.get(`/fund/JournalEntries/SelectCategory?sobId=${id}`)
}
const cashData = (_data:{[props:string]:any}) => {
    return request.post(
        '/fund/JournalEntries/ListPage',{data:_data}
    )
}
const cashDataAdd=(_data:{[props:string]:any})=>{
    return request.post('/fund/JournalEntries/addJournalEntries',{data:_data})
}
const cashDataDel=(id:number)=>{
    return request.post(`/fund/JournalEntries/deleteJournalEntries/${id}`)
}
const editCash=(_data:{[props:string]:any})=>{
    return request.post('/fund/JournalEntries/updateJournalEntries',{data:_data})
}
const exports=(_data:{[props:string]:any})=>{
    return request.post('/fund/JournalEntries/downExcel',{data:_data,responseType:'blob'})
}
const exports1=()=>{
    return request.post('/checkLedger/checkLedgerExport',{data:{},responseType:'blob'})
}
const model=(_data:{[props:string]:any})=>{
    return request.post('/fund/VoucherSettings/ListPage',{data:_data})
}
const generalData=(_data:{[props:string]:any})=>{
    return request.post('/checkLedger/checkLedgerFindAllPage',{data:_data})
}
const report=(_data:{[props:string]:any})=>{
    return request.post(
        '/fund/ReportForms/ListPage',{data:_data}
    )
}
export {
    Bookkeeping,
    book1,
    cashData,
    cashDataAdd,
    cashDataDel,
    editCash,
    exports,
    exports1,
    model,
    generalData,
    report
}